<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>礼品方案</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <div style="display: flex;position: relative;">
      <div style="flex: 1;border: 1px solid rgb(235,238, 245);">
          <div style="font-size: 14px; height: 46px;display: flex;align-items: center;font-weight: bold;justify-content: center;color: rgb(144,147,153);border-bottom: 1px solid rgb(235,238, 245);">
              企业列表
          </div>
          <el-tree :data="Employees" ref="tree" node-key="value" :props="treeProps" @node-click="handleCheckChange" style="height: 500px;overflow-y: auto;">
              <template v-slot="{data}">
                  <!-- {{data.label}} -->
                  <span style="font-size: 14px;font-weight: bold;color: #333;">{{data.label}}</span>
              </template>
          </el-tree>
      </div>
      <div style="width: 80%;margin-left: 20px;height: 100%;">
          <el-table @expand-change="handleChildren" :data="selectedData" stripe border height="calc(100vh - 140px)" style="width: 100%">
            <el-table-column type="expand" width="60">
              <template slot-scope="props">
                <el-table :data="props.row.Children.article_specifications">
                  <el-table-column align="center" type="index" width="50" label="序号"></el-table-column>
                  <el-table-column align="center" prop="Gift_Card_SerialNumber" label="礼品卡号"></el-table-column>
                  <el-table-column align="center" prop="Sales_Contacts" label="兑换人"></el-table-column>
                  <el-table-column align="center" prop="Sales_Phone" label="兑换人手机号"></el-table-column>
                  <el-table-column align="center" prop="Collection_Date" label="兑换时间"></el-table-column>
                  <el-table-column align="center" prop="Sales_Address" label="收货地址"></el-table-column>
                  <el-table-column align="center" prop="Remain_Quantity" label="已兑换商品数量"></el-table-column>
                  <el-table-column align="center" prop="Sell_Quantity" label="未兑换商品数量"></el-table-column>
                  <el-table-column align="center" label="状态">
                    <template slot-scope="scope">
                      <span v-if="scope.row.Row_Status == 0">未使用</span>
                      <span v-if="scope.row.Row_Status == 1">已使用</span>
                    </template>
                  </el-table-column>
                </el-table>
              </template>
            </el-table-column>  
            <el-table-column label="序号" width="50" type="index"></el-table-column>
              <el-table-column align="center" prop="Gift_Card_Scheme_Name" label="礼品卡名称"></el-table-column>
              <el-table-column align="center" prop="Gift_Card_Quantity" label="礼品卡数量"></el-table-column>
              <el-table-column align="center" prop="" label="使用数量"></el-table-column>
              <el-table-column align="center" prop="Start_Date" label="发放时间"></el-table-column>
              <el-table-column align="center" prop="End_Date" label="失效时间"></el-table-column>
          </el-table>
          <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
            :current-page="form.page" :page-sizes="[10, 20, 30, 50]" :page-size="form.limit"
            layout="total, sizes, prev, pager, next, jumper" :total="total">
          </el-pagination>
      </div>
  </div>
  </div>
  <script type="text/javascript" src="../../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/Giftcarduse.js"></script>
</body>

</html>